﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WF.DAL;

namespace WF.Model
{
    public class OperatePageEntity : EntityBase<OperatePage>
    {
        #region 构造函数

        public OperatePageEntity() : base() { }
        public OperatePageEntity(OperatePage OperatePage) : base(OperatePage) { }
        #endregion

        #region 实现基类abstract属性

        public override string ID
        {
            get { return DbEntity.ID; }
            set { DbEntity.ID = value; this.SendPropertyChanged("ID"); }
        }

        public override string DisplayName
        {
            get { return DbEntity.ID; }
        }

        #endregion

        #region Public 属性

        public string OperateID
        {
            get
            {
                return DbEntity.OperateID;
            }
            set
            {
                DbEntity.OperateID = value; this.SendPropertyChanged("OperateID");
            }
        }

        public string PageName
        {
            get
            {
                return DbEntity.PageName;
            }
            set
            {
                DbEntity.PageName = value; this.SendPropertyChanged("PageName");
            }
        }

        public string PageUrl
        {
            get
            {
                return DbEntity.PageUrl;
            }
            set
            {
                DbEntity.PageUrl = value; this.SendPropertyChanged("PageUrl");
            }
        }

        #endregion
    }
}
